package com.foreknow.demo4;

import com.foreknow.test.Employee;

public class C {
    public void m6(int[] array) {
        for(int i = 0;i<array.length;i++){
            System.out.println(array[i]);
        }
    }

    public Employee[] m7(Employee[] employees) {
        return employees;
    }

    public static void main(String[] args) {
        A a = new A();
        int sum = a.m2(1,2);
        System.out.println(sum);

        D d = new DImpl();
        d.eat();

        C c = new C();
        int[] arr = {1,2,3,4,5};
        c.m6(arr);
        Employee[] emps = new Employee[3];
        emps[0] = new Employee("1000","fender",20,"mark");
        emps[1] = new Employee("1001","gibson",30,"mark2");
        c.m7(emps);

    }
}
